// WelcomeForm.cpp : implementation file
//

#include "stdafx.h"
#include "EBASApp.h"
#include "WelcomeForm.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CWelcomeForm

IMPLEMENT_DYNCREATE(CWelcomeForm, CFormView)

CWelcomeForm::CWelcomeForm()
	: CFormView(CWelcomeForm::IDD)
{
	EnableAutomation();
	//{{AFX_DATA_INIT(CWelcomeForm)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT

	CEBASAppApp::g_nCurrentView = WELCOME;
}

CWelcomeForm::~CWelcomeForm()
{
}

void CWelcomeForm::OnFinalRelease()
{
	// When the last reference for an automation object is released
	// OnFinalRelease is called.  The base class will automatically
	// deletes the object.  Add additional cleanup required for your
	// object before calling the base class.

	CFormView::OnFinalRelease();
}

void CWelcomeForm::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWelcomeForm)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWelcomeForm, CFormView)
	//{{AFX_MSG_MAP(CWelcomeForm)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CWelcomeForm, CFormView)
	//{{AFX_DISPATCH_MAP(CWelcomeForm)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IWelcomeForm to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {EC5051CF-9A52-4851-9579-7568B6A44B50}
static const IID IID_IWelcomeForm =
{ 0xec5051cf, 0x9a52, 0x4851, { 0x95, 0x79, 0x75, 0x68, 0xb6, 0xa4, 0x4b, 0x50 } };

BEGIN_INTERFACE_MAP(CWelcomeForm, CFormView)
	INTERFACE_PART(CWelcomeForm, IID_IWelcomeForm, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWelcomeForm diagnostics

#ifdef _DEBUG
void CWelcomeForm::AssertValid() const
{
	CFormView::AssertValid();
}

void CWelcomeForm::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CWelcomeForm message handlers
